<?php
mysql_connect("127.0.0.1","root","sd2013");
mysql_select_db("mathRomp");

//Get array of current games
$q = mysql_query("SELECT userId, userScore FROM `Games-Users` WHERE gameId = ".$_REQUEST['gameId']."");

while($g=mysql_fetch_assoc($q)){
  $output[]=$g;
}
print(json_encode($output));

?>